package com.chen.framework.model.sys;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.chen.root.base.BaseDO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
 * <p>
 * 系统目录
 * </p>
 *
 * @author 
 * @since 2024-11-28 03:02:28
 */
@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@TableName("sys_dir")
@ApiModel(value = "SysDir对象", description = "系统目录")
public class SysDir extends BaseDO {

    @ApiModelProperty("主键")
    @TableId("id")
    private Long id;

    @ApiModelProperty("父id，根目录为0")
    @TableField("parent_id")
    private Long parentId;

    @ApiModelProperty("目录code")
    @TableField("dir_code")
    private String dirCode;

    @ApiModelProperty("目录名称")
    @TableField("dir_name")
    private String dirName;

    @ApiModelProperty("同级序号，默认0")
    @TableField("serial_num")
    private Integer serialNum;

}
